package com.gmcc.docmanager.download;

public final class TaskSettingField {
	public static final String ACTION_SETTINGCHANGED = "com.gmcc.docmanager.tasksetting.changed";

	public static final String TAG_RUN_COUNT = "taskRunningCount";
	public static final String TAG_HISTORY_COUNT = "taskHistoryCount";
	public static final String TAG_RUN_COUNT_INDEX = "taskRunningCountIndex";
	public static final String TAG_HISTORY_COUNT_INDEX = "taskHistoryCountIndex";
	public static final String TAG_FINISHED_PROMPT = "taskFinishedPrompt";

	// public static final int getTaskRunningCount(Context context)
	// {
	// SharedPreferences settings = context.getSharedPreferences(
	// MainActivity.PREFS_NAME, Context.MODE_PRIVATE);
	// int index = settings.getInt(TAG_RUN_COUNT_INDEX, 1);
	// String[] array = context.getResources().getStringArray(
	// R.array.freq_download_taskcount_simultaneously);
	// if (index >= array.length)
	// {
	// index = array.length - 1;
	// }
	// int result = Integer.parseInt(array[index]);
	// AspLog
	// .i(TaskSettingActivity.LOG_TAG, "getTaskRunningCount = " + result);
	// return result;
	// }
	//
	// public static final int getHistoryCount(Context context)
	// {
	// SharedPreferences settings = context.getSharedPreferences(
	// MainActivity.PREFS_NAME, Context.MODE_PRIVATE);
	// int index = settings.getInt(TAG_HISTORY_COUNT_INDEX, 2);
	// String[] array = context.getResources().getStringArray(
	// R.array.freq_download_history);
	// if (index >= array.length)
	// {
	// index = array.length - 1;
	// }
	// int result = Integer.parseInt(array[index]);
	// AspLog.i(TaskSettingActivity.LOG_TAG, "getHistoryCount = " + result);
	// return result;
	// }
	//
	// public static final boolean getFinishedPrompt(Context context)
	// {
	// SharedPreferences settings = context.getSharedPreferences(
	// MainActivity.PREFS_NAME, Context.MODE_PRIVATE);
	// boolean result = settings.getBoolean(TAG_FINISHED_PROMPT, false);
	// AspLog.i(TaskSettingActivity.LOG_TAG, "getFinishedPrompt = " + result);
	// return result;
	// }
}
